package ae.pcfc.etks.online.common.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TTscDepartmentsId entity. @author Mohtisham.Salahria
 */
@Entity
@Table(name = "T_TSC_DEPARTMENTS", schema = "TSC_RW")
public class TTscDepartments implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Long deptId;
	private String deptCode;
	private String descDesc;
	private String descDescA;
	private String deptCreateduser;
	private Date deptCreatedtime;
	private String deptModifieduser;
	private Date deptModifiedtime;

	// Constructors

	/** default constructor */
	public TTscDepartments() {
	}

	/** minimal constructor */
	public TTscDepartments(Long deptId, String deptCode, String descDesc,
			String descDescA) {
		this.deptId = deptId;
		this.deptCode = deptCode;
		this.descDesc = descDesc;
		this.descDescA = descDescA;
	}

	/** full constructor */
	public TTscDepartments(Long deptId, String deptCode, String descDesc,
			String descDescA, String deptCreateduser, Date deptCreatedtime,
			String deptModifieduser, Date deptModifiedtime) {
		this.deptId = deptId;
		this.deptCode = deptCode;
		this.descDesc = descDesc;
		this.descDescA = descDescA;
		this.deptCreateduser = deptCreateduser;
		this.deptCreatedtime = deptCreatedtime;
		this.deptModifieduser = deptModifieduser;
		this.deptModifiedtime = deptModifiedtime;
	}

	// Property accessors

	@Id
	@Column(name = "DEPT_ID", nullable = false, precision = 11, scale = 0)
	public Long getDeptId() {
		return this.deptId;
	}

	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}

	@Column(name = "DEPT_CODE", nullable = false, length = 10)
	public String getDeptCode() {
		return this.deptCode;
	}

	public void setDeptCode(String deptCode) {
		this.deptCode = deptCode;
	}

	@Column(name = "DESC_DESC", nullable = false, length = 100)
	public String getDescDesc() {
		return this.descDesc;
	}

	public void setDescDesc(String descDesc) {
		this.descDesc = descDesc;
	}

	@Column(name = "DESC_DESC_A", nullable = false, length = 100)
	public String getDescDescA() {
		return this.descDescA;
	}

	public void setDescDescA(String descDescA) {
		this.descDescA = descDescA;
	}

	@Column(name = "DEPT_CREATEDUSER", length = 30)
	public String getDeptCreateduser() {
		return this.deptCreateduser;
	}

	public void setDeptCreateduser(String deptCreateduser) {
		this.deptCreateduser = deptCreateduser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "DEPT_CREATEDTIME", length = 7)
	public Date getDeptCreatedtime() {
		return this.deptCreatedtime;
	}

	public void setDeptCreatedtime(Date deptCreatedtime) {
		this.deptCreatedtime = deptCreatedtime;
	}

	@Column(name = "DEPT_MODIFIEDUSER", length = 30)
	public String getDeptModifieduser() {
		return this.deptModifieduser;
	}

	public void setDeptModifieduser(String deptModifieduser) {
		this.deptModifieduser = deptModifieduser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "DEPT_MODIFIEDTIME", length = 7)
	public Date getDeptModifiedtime() {
		return this.deptModifiedtime;
	}

	public void setDeptModifiedtime(Date deptModifiedtime) {
		this.deptModifiedtime = deptModifiedtime;
	}
}